package com.job.createType.prototype;

/**
 * @Author 王博
 * @DateTime 2025-04-10 08:46
 */
public class Client {
    public static void main(String[] args) throws CloneNotSupportedException {
        JiangZhuang one = new JiangZhuang();
        one.setName("one");
        Brand deli = new Brand("得力");
        one.setBrand(deli);

        JiangZhuang two = one.clone();
        two.setName("two");
        Brand brand = two.getBrand();
        brand.setName("晨光");


        System.out.println("奖状一样吗？？？" + (one == two));

        System.out.println("牌子一样吗？？？"+(deli==brand));

        one.show();
        two.show();
    }
}
